const uniq=require('uniq');

var arr=[1,1,2,2,3,4,2,2,5,7,5,5];

var result=uniq(arr);
console.log(result);